<?php
/**
 * 描述：展会-专题列表。
 * @final
 */
final class Exec_Exhibition_Topic_List extends Exec_Exhibition_Right
{
    public function Get()
    {
        #获取数据
        $data=DB::GetData('select * from exhibition_topic order by ID desc limit ?,20');
        foreach($data['Record'] as &$row)
        {
            $row['ThumbnailPath']=Config::PATH_RELATIVE_ATTACHMENT_TEMP.'/'.$row['ThumbnailPath'];
        }
        View::Assign('Exhibition_TopicList_Infos',@$data['Record']);

        #渲染输出
        View::Assign('Exhibition_TopicList_PageMenu',PagerFactory::Create('Common')->Fetch($data,array
        (
            'URL'=>'/exec.php?action=exhibition_topic_list',
            'IsDetail'=>TRUE,
            'Rewriter'=>new PagerRewrite('/topic/','','html')
        )));
        View::Display('exhibition/topic/list.tpl');
    }
}
?>